package com.dy.lock.screen.dao.impl;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.CustomerReportDao;
import com.dy.lock.screen.pojo.CustomerReportInfo;

@Repository("customerReportDao")
public class CustomerReportDaoImpl extends
		BaseDaoImpl<CustomerReportInfo, String> implements CustomerReportDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.ReportMapper";
	}

	@Override
	public CustomerReportInfo queryByPrimaryKey(String id) {
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".selectByPrimaryKey", id);
	}

	@Override
	public CustomerReportInfo queryByRidAndBeRid(CustomerReportInfo reportInfo) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryByRidAndBeRid", reportInfo);
	}

}
